home *** CD-ROM | disk | FTP | other *** search
- <%@ page language="java" import="
- com.jproxy.site.mbeans.JMXInvocator,
- com.jproxy.site.mbeans.config.*,
- com.jproxy.site.*"
- %>
-
- <jsp:useBean id="ses" scope="session" class="com.jproxy.site.JSPSession"/>
- <%
- ses.request(pageContext);
- ses.setNewHit(pageContext, "hits", "Buy JProxy Tunnel", null);
-
- //String host = "http://jproxy.com";
- String host = "http://"+request.getServerName()+":"+request.getServerPort();
-
- boolean isDisabled = false;
- int arrModels[] = {0};
- int arrModelPrices[][] = {{499, 99}};
-
- int nCurPriceModel = arrModels[0];
- int firstLicensePrice = arrModelPrices[nCurPriceModel][0];
- int additionalLicensePrice = arrModelPrices[nCurPriceModel][1];
-
- //int firstLicensePrice = 1;
- //int additionalLicensePrice = 1;
-
- int amount = arrModelPrices[0][0];
- int licenses = 1;
- int customerId = 0;
- int invoice = 0;
-
- // find out the number of licenses requested
- if(request.getParameter("licenses")!=null)
- {
- try{
- licenses = new Integer(request.getParameter("licenses")).intValue();
- if (licenses <= 0)
- licenses = 1;
- }
- catch(Exception ee){}
- }
-
- // calculate the total amount based on the number of licenses and the pricing model
- if (request.getParameter("price_model") != null)
- {
- nCurPriceModel = new Integer(request.getParameter("price_model")).intValue();
-
- for (int i=0; i< arrModels.length; i++) {
- if (nCurPriceModel == arrModels[i]) {
- amount = arrModelPrices[i][0] + arrModelPrices[i][1] * (licenses - 1);
- break;
- }
- }
- }
-
- //amount = firstLicensePrice+additionalLicensePrice*(licenses-1);
-
- if(request.getParameter("submit_recalculate")!=null)
- {
- }
- if(request.getParameter("submit_purchase")!=null && request.getParameter("error")==null)
- {
- %>
- <jsp:forward page="../purchase.jsp"/>
- <%
- }
- %>
-
- <!-- HEADER -->
- <jsp:include page="../header.jsp" flush="true">
- <jsp:param name="name" value="Buy JProxy Tunnel"/>
- </jsp:include>
-
- <!-- MAIN PANEL -->
-
- <%
- if(isDisabled)
- {
- %>
- <blockquote>
- <p><b>Sorry, </b></p>
- <p><b>The page is under construction.</b></p>
- <p><b>E-Commerce is coming soon.</b></p>
- <p><b>Get free feature limited JProxy release <a href="download.html">here</a>.</b></p>
- </blockquote>
- <%
- }
- else
- {
-
- ConfigMBean mbean = (ConfigMBean)JMXInvocator.getMBean(
- "JProxy:service=JProxyConfigMBean", ConfigMBean.class);
- String productName = mbean.get("com.jproxy.proxy.name") + " " + mbean.get("com.jproxy.proxy.version");
- String invoiceStr = mbean.get("com.jproxy.commerce.invoice");
- try{
- invoice = Integer.parseInt(invoiceStr);
- }
- catch(Exception e){
- invoice = 15;
- }
- %>
- <br>
- <table class="h9Verdana" cellpadding="5" width="600" border="0">
- <!-- Prolog -->
- <tr>
- <td>
- <table class="h9Verdana" border="0" bgcolor="9c9cff" cellpadding="1" cellspacing="0">
- <tr><td>
- <%=productName%>
- </td></tr>
- <tr><td>
- <table class="h9Verdana" border="0" bgcolor="white" cellpadding="5" cellspacing="1" >
- <tr>
- <td class="h8Verdana" align="left">
- Please enter the number of host licenses you would like to purshase and click <b>Recalcualte</b> to get the updated price
- </td>
- </tr>
- <tr>
- <td align="left">
- <form method="get" action="buy.jsp">
- Quantity:
- <input type="input" name="licenses" value="<%=licenses%>" size="3">
- # of concurrent clients:
- <%
- ses.combobox_beans = JSPRes.dct.price_model;
- %>
- <jsp:include page="combobox.jsp" flush="true">
- <jsp:param name="name" value="price_model"/>
- <jsp:param name="id" value="<%=nCurPriceModel%>"/>
- </jsp:include>
- Total: <input type="text" name="total" READONLY value="$<%=amount%>" size="6">
-    <INPUT TYPE=SUBMIT NAME=submit_recalculate WIDTH="20" VALUE="Recalculate">
- </form>
- </td>
- </tr>
- </table>
- <!-- begin separator -->
- </td></tr>
- <tr><td>
- <!-- end separator -->
- <table class="h8Verdana" width="100%" border="0" bgcolor="white" cellpadding="5" cellspacing="0" >
- <tr>
- <td align="left">
- When you're ready to proceed to a secure payment form
- please press the <b>Purshase</b> button
- </td>
- <td align="right">
- <br>
- <%
- String headerHTML = "<font size=30 color=#6331CE>JProxy</font>";
- headerHTML += "<font size=10 color=#9C00FF>.com</font>";
- String footerHTML = "<font size=2><em>Copyright 2001-2002, JProxy</em></font>";
- %>
- <FORM METHOD=POST ACTION="https://secure.authorize.net/gateway/transact.dll">
- <INPUT TYPE=HIDDEN NAME="x_amount" VALUE="<%=amount%>">
- <INPUT TYPE=HIDDEN NAME="number_of_licenses" VALUE="<%=licenses%>">
- <INPUT TYPE=HIDDEN NAME="x_Version" VALUE="3.0">
- <INPUT TYPE=HIDDEN NAME="x_Login" VALUE="jproxyllc">
- <INPUT TYPE=HIDDEN NAME="x_Show_Form" VALUE="PAYMENT_FORM">
- <INPUT TYPE=HIDDEN NAME="x_Cust_ID" VALUE="<%=customerId%>">
- <INPUT TYPE=HIDDEN NAME="x_Invoice_Num" VALUE="<%=invoice%>">
- <INPUT TYPE=HIDDEN NAME="x_Description" VALUE="<%=productName%>">
- <!-- INPUT TYPE=HIDDEN NAME="x_Logo_URL" VALUE="http://jproxy.com/main/resources/jproxy.gif" -->
- <INPUT TYPE=HIDDEN NAME="x_Header_HTML_Payment_Form" VALUE="<%=headerHTML%>">
- <INPUT TYPE=HIDDEN NAME="x_Footer_HTML_Payment_Form" VALUE="<%=footerHTML%>">
- <INPUT TYPE=HIDDEN NAME="x_Receipt_Link_Method" VALUE="GET">
- <INPUT TYPE=HIDDEN NAME="x_Receipt_Link_Text" VALUE="Click here to continue">
- <INPUT TYPE=HIDDEN NAME="x_Receipt_Link_URL" VALUE="<%=host%>/main/purchase.jsp;jsessionid=<%=request.getSession().getId()%>">
- <INPUT TYPE=SUBMIT NAME=submit_purchase WIDTH="20" VALUE="Purshase">
- </FORM>
- </td>
- </tr>
- </table>
- </td></tr>
- </table>
- </td>
- </tr>
-
- <tr>
- <td>
- <table class="h9Verdana" border="0" bgcolor="9c9cff" cellpadding="1" cellspacing="0">
- <tr><td>
- JProxy Software Refund Policy
- </td></tr>
- <tr><td>
- <table width="100%" class="h9Verdana" border="0" bgcolor="white" cellpadding="5" cellspacing="1" >
- <tr>
- <td class="h9Verdana" align="left">
- <br>
- <b>J</b>Proxy software is priced for electronic delivery only. Customers
- must download the files. We do not ship CDs or Disks. Therefore,
- JProxy does not issue refunds for any reason. Customers are responsible
- for downloading and trying the feature-limited version of the
- product and sample code to ensure that the software will work
- on the customers system and that the customer already has the
- necessary hardware and application required to run the software.
- <br>
- When JProxy receives payment, we send customers a password to
- download the full versions of our software. This password carries
- a lifetime registration. That allows our customers to revisit
- and download the latest versions free for LIFE! The high quality,
- delivery method and low cost of our software amply justify our
- 'no refund' policy.
- <br>
- <br>
- </td>
- </tr>
- </table>
- </td></tr>
- </table>
- <p>
- </td>
- </tr>
- </table>
- <%
- }
- %>
-
- <!-- FOOTER -->
- <jsp:include page="../footer.jsp" flush="true"/>
-
-